<template>
    <div>
        <Form >
            <FormItem prop="acct">
                <span slot="label">帐号 ：</span>
                <Input type="text" v-model="user.acct" />
            </FormItem>
            <FormItem prop="pwd">
                <span slot="label">密码 ：</span>
                <Input type="password" v-model="user.pwd" />
            </FormItem>
        </Form>
        <Row type="flex" justify="space-around" >
            <Col span='4'>
                <Button @click="regist">注册</Button>
            </Col>
            <Col span='4'>
                <Button @click="login">登陆</Button>
            </Col>
        </Row>
        <br>
    </div>
</template>
<script>
export default {
    props:{
        queue:{

        }
    },
    data(){
        return {
            user:{
                acct:'',
                pwd:'',
            },
        }
    },
    methods:{
        regist(){

        },
        login(){
            this.$post('/login/user',{
                ...this.user
            }).then(res=>{
                this.$emit('then',res)
                this.$Modal.remove();
            })
        }
    }
}
</script>